tibco.admin.Main.loadResource("tibco/admin/enterpriseAssets/sReg/uddi/jss/jssUDDI.xml", "tibco.admin", "UDDI_JSS_23", "ljss");

jsx3.require("tibco.admin.enterpriseAssets.sReg.ServerRegistrationPluginInterface");

jsx3.lang.Class.defineClass("tibco.admin.enterpriseAssets.sReg.uddi.UddiServers",
        jsx3.lang.Object,
        [tibco.admin.enterpriseAssets.sReg.ServerRegistrationPluginInterface],
        function (plugin) {
            plugin.instance = null

            plugin.prototype.init = function() {
                this.jsxsuper();
            }

            plugin.prototype.getNamespace = function() {
                return "tibco.admin";
            }

            plugin.prototype.destroyPlugin = function() {

            }

            plugin.getInstance = function(args) {
                if(!this.instance) {
                    this.instance = new tibco.admin.enterpriseAssets.sReg.uddi.UddiServers();
                }
                return this.instance;
            }

            plugin.prototype.loadComponent = function(parent) {
                tibco.admin.Main.loadUIResourceAsync(parent, "tibco.admin", "tibco/admin/enterpriseAssets/sReg/uddi/ui/uddi.xml");
            }

            plugin.prototype.getTabText = function(parent) {
                return tibco.admin.Main.getServer().getDynamicProperty("@lblUUDITabText_23");
            }

            plugin.prototype.listLoaded = function(objEvent) {
                if(objEvent.status == "SUCCESS") {
                    this.childList = objEvent.obj;
                    var me = this;
                    this.childList.handler = me;
                }
            }

            plugin.prototype.detailsLoaded = function(objEvent) {
                if(objEvent.status == "SUCCESS") {
                    this.childDetails = objEvent.obj;
                    var me = this;
                    this.childDetails.handler = me;
                }
            }

            plugin.prototype.beginEdit = function() {
                this.beginEditMode();
                this.childList.beginEditMode();
            }

            plugin.prototype.endEdit = function() {
                this.endEditMode();
                this.childList.endEditMode();
            }

            plugin.prototype.tabSelected = function() {
                this.childList.onRefresh();
            }
        });